package com.oauth2_security.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * 
 * @author dinghao
 *
 */
public interface RequestAuthenticationService {

    /**
     * 是否拥有控制权限
     * @param authentication
     * @param request
     * @return
     */
    boolean isPossessPermission(Authentication authentication, HttpServletRequest request);
}
